import React, { Suspense } from "react"
import { useRoutes, Link, Router } from "react-router-dom"
import routers from "@/router"
import "./app.css"

function App() {
  return (
    <div>
      <nav>
        <Link to="/">Home</Link>
        <Link to="/mine">Mine</Link>
        <Link to={"/home/recommand"}>APPrecommand</Link>
      </nav>
      <Suspense>{useRoutes(routers)}</Suspense>
    </div>
  )
}

export default App
